from django.db import models


# Create your models here.
class User(models.Model):
    id = models.AutoField(primary_key=True)
    uname = models.CharField(max_length=100,unique=False)
    pwd = models.CharField(max_length=100)

    class Meta():
        db_table = 'user'


class Student(models.Model):
    sname = models.CharField(max_length=100)
    age = models.IntegerField()
    da = models.DateField(auto_now_add=True)
    ns = models.BooleanField()
    gjz = models.CharField(max_length=100)
    fenlei = models.CharField(max_length=100)

    class Meta():
        db_table = 'student'
